feat(padding): opt-in mobile padding via PaddingClasses#2003
Merged
Conversation
Swap the section-level padding interpolations (page shells, headers, footer, navbar) to mod-utils' PaddingClasses partial, enabling the opt-in [*.padding.mobile] config. Output is byte-identical when no mobile padding is configured. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pins the release that ships the PaddingClasses partial consumed by this branch. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for gethinode-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Collaborator
Author
|
🎉 This PR is included in version 2.20.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consumes mod-utils v5.24.0's opt-in
[*.padding.mobile]support: the section-level padding interpolations (page shells, headers, footer social, navbar) now compose their classes via thePaddingClassespartial. Sites that configure a mobile padding getpx-2 px-md-4-style responsive utilities below the md breakpoint; sites that don't get byte-identical output (verified with a full-site class-string diff of the exampleSite against main — empty).Ten consumer sites swapped: single, list (×2), tags/list, docs/all, header, docs/header, minimal/header, form/single, footer/social, navbar (navigation section, falls back to main's mobile values per the existing chain).
Deliberately not swapped
page/articles.html,assets/links.html,assets/card.html,assets/card-group.html,assets/nav.html,assets/timeline.html,assets/section-title.html— internal component rhythm, not section padding._shortcodes/example-bookshop.html— already mobile-aware by construction (p-1 px-md-*).head/stylesheet.html'spadding-xSCSS var — SCSS keeps the regular value.🤖 Generated with Claude Code